gtkwindow: Fix resize without "_GTK_FRAME_EXTENTS"
authorOlivier Fourdan <ofourdan@redhat.com>
Mon, 9 Nov 2015 11:05:37 +0000 (12:05 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Nov 2015 13:17:53 +0000 (14:17 +0100)
commit9757ea2c49b21c11710e7148d8cda19275453b80
treee6b26df6d0fbf8bfa68242db2d9d6354228e396e
parent32f27a4cd0515493627fc143dc1f0ed1e40fd1f9
gtkwindow: Fix resize without "_GTK_FRAME_EXTENTS"

git commit a5b1cdd0 introduced a regression where CSD windows are not
resizable with metacity.

Reason being that metacity does not support "_GTK_FRAME_EXTENTS" and
therefore gtk_window_supports_client_shadow() would always return FALSE.

This explains why it works with window managers which support
"_GTK_FRAME_EXTENTS" such as mutter/gnome-shell or xfwm4.

Partially revert commit a5b1cdd0 to reinstate the logic in
get_shadow_width().

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=757805
gtk/gtkwindow.c